<include file="Common/header" xmlns="http://www.w3.org/1999/html"/>
<div class="container">
    <div class="row">
        <include file="Tools/tools-sidber" />
        <div class="col-md-10">
            <div class="page-header"><h3>{$page_title}</h3></div>
            <a  class="btn btn-default" href="{:U('Links/index')}">ئۇلىنىشلار</a>&nbsp;
            <a  class="btn btn-default" href="{:U('Links/add')}">ئۇلىنىش قۇشۇش</a><br><br>
           <div class="row">
               <form action="{:U('Links/saveHandler')}" method="post">
                   <input type="hidden" value="{$link['id']}" name="id">
            <div class="form-group">
                <input type="text" name="lname" class="form-control" placeholder="ئۇلىنىش نامىنى يىزىڭ" value="{$link['lname']}">
            </div>
            <div class="form-group">
                <input  type="text" class="form-control" name="lurl" placeholder="ئۇلىنىش ئادىرىسنى يىزىڭ" value="{$link['lurl']}">
            </div>
                   <div class="form-group">
                       <input  type="text" class="form-control" name="site_name" placeholder="باشقۇرغۇچى نامىنى يىزىڭ" value="{$link['site_name']}">
                   </div>
                   <div class="form-group">
                       <input  type="text" class="form-control" name="site_QQ" placeholder="QQ" value="{$link['site_qq']}">
                   </div>
                   <div class="radio">
                       <label class="radio-inline">
                           <input type="radio" name="target"  value="1" <if condition="$link['target']==1">checked</if>> يېڭى كۆزنەكتە ئىچىلسۇن
                       </label>
                       <label class="radio-inline">
                           <input type="radio" name="target"  value="0" <if condition="$link['target']==0">checked</if>> مەزكۇر كۆزنەكتە ئىچىلسۇن
                       </label>
                   </div>
                   <div class="radio">
                       <label class="radio-inline">
                           <input type="radio" name="status" id="inlineRadio1" value="1" <if condition="$link['status']==1">checked</if>> ئۇچۇق
                       </label>
                       <label class="radio-inline">
                           <input type="radio" name="status" id="inlineRadio2" value="0" <if condition="$link['status']==0">checked</if>> تاقاق
                       </label>
                   </div>
            <button  type="submit" class="btn btn-primary" >ساقلاش</button>
               </form>
        </div>



    </div>
</div>
<include file="Common/footer" />